<template>
 <map-Point @commitCheck="commitCheck" :mapKey='mapKey' :Radius='Radius' :showResetting='showResetting' :listIco='listIco' :orientationIco='orientationIco' :resettingIco='resettingIco' ></map-Point>
</template>
<script>
export default {
    data() {
        return {
            mapKey:'d98e6bceaa3d0f1ced85a146bb3d6458',
            address: '',
            latitude: '',
            longitude: '',
            listIco:'/uni_modules/map-Point/static/item-inx.png',
            orientationIco:'/uni_modules/map-Point/static/map-inx.png',
            resettingIco:"/uni_modules/map-Point/static/position.png",
            showResetting:true,
            Radius:'',
        };
    },
    methods: {
        commitCheck(e) {
            console.log(e, 565);
            uni.$emit('commitCheck', e);
            uni.navigateBack({
                delta: 1
            });
        }
    }
};
</script>
<style lang="scss" scoped>
:deep(.uni-easyinput__placeholder-class) {
  background-color: red !important;
}
.container {
  width: 680.56rpx;
  height: 416.67rpx;
  margin: 6.94rpx 0;
  border: 1px solid #e3e3e3;

  .coordinate {
    z-index: 9999;
    position: relative;
    top: 50%;
    left: 50%;
  }
}
.map_container {
  position: relative;
  top: 0;
  bottom: 80px; /* 底部留出的空间 */
  left: 0;
  right: 0;
}
.map {
  width: 100%;
  /* 计算总的高度，减去底部空间，然后取45% */
  height: calc((100vh - 80px) * 0.45);
}
.map_text {
  background: #fff;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
span {
  margin: 5px 0;
  display: block;
  font-size: 12px;
}
.h1 {
  margin: 15px 0;
  font-size: 15px;
}
.address-list {
  position: relative;
  top: auto; /* 移除绝对定位 */
  bottom: auto;
  left: 0;
  right: 0;
  /* 同样计算剩余的高度，取剩下的45% */
  height: calc((100vh - 80px) * 0.7);
  overflow-y: auto; /* 添加滚动条 */
  .address-list-item {
    border-bottom: 1px solid #eee;
	}
}